package com.yykj.backstage.all.service;


import com.yykj.backstage.all.dto.*;
import com.yykj.backstage.all.form.AdminEditForm;
import com.yykj.backstage.all.form.AdminRoleForm;
import com.yykj.backstage.all.form.AdminMenuForm;
import com.yykj.backstage.all.form.LoginForm;
import com.yykj.backstage.all.model.entity.AdminOauth;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface AdminService {
    AdminLoginInfo login(@RequestBody LoginForm loginForm);

    AdminLoginInfo loginInfo(String token);

    List<AdminMenu> getAdminMenu(Integer adminId);

    AdminOauth editMenu(AdminMenuForm form);

    void deleteMenu(Integer id);

    AdminRoleDTO editRole(AdminRoleForm form);

    void deleteRole(Integer groupId);

    void deleteAdmin(Integer adminId);

    AdminDTO editAdmin(AdminEditForm adminEditForm);

    List<AdminDTO> getAdminList();

    List<AdminRoleDetailDTO> listRole();

    void logout();

    void changeAdminPassword(AdminPasswordDTO adminPasswordDTO);

}
